//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_hasnvgoggles.sqf"
#include "x_setup.sqf"

if (GVAR(without_nvg) != 0) exitWith {};

private ["_assigneditems","_return"];
_assigneditems = assigneditems _this;
// TYRGHEN
//("NVGoggles" in _assigneditems || {"NVGoggles_OPFOR" in _assigneditems} || {"NVGoggles_INDEP" in _assigneditems})
_return = false;
{
	if (isClass(configFile/"CfgWeapons"/_x) && { (getText(configFile/"CfgWeapons"/_x/"simulation")) == "NVGoggles" }) exitWith { _return = true };
} foreach _assigneditems;
_return